<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>com.sekati.core.KeyFactory - SASAPI</title><script src="../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../index-files";
//--></script><link href="../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../overview-summary.html" title="Overview" rel="top"/><link href="package-summary.html" title="Package com.sekati.core" rel="up"/><link href="../../../com/sekati/crypt/Base64.html" title="Class com.sekati.crypt.Base64" rel="prev"/><link href="../../../com/sekati/core/FWDepth.html" title="Class com.sekati.core.FWDepth" rel="next"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><h1>Class com.sekati.core.KeyFactory</h1><div class="type_hierachy"><ul><li><strong>com.sekati.core.KeyFactory</strong></li></ul></div><div class="type_description"><h2>Description</h2><p>
 Give flash runtime objects a unique ID.
 </p><h4>See Also</h4><ul class="extra_info"><li> pixlib's HashCodeFactory
 </li><li> nectere's KeyInjector.
 </li></ul></div><div class="type_indexes"><div class="method_index"><h2>Method Index</h2><a href="#getKey" title="static public function getKey(o:Object):Number">getKey()</a>, <a href="#getNextName" title="static public function getNextName():String">getNextName()</a>, <a href="#inject" title="static public function inject(o:Object):Number">inject()</a>, <a href="#isSameObject" title="static public function isSameObject(a:Object, b:Object):Boolean">isSameObject()</a>, <a href="#previewNextKey" title="static public function previewNextKey():Number">previewNextKey()</a></div></div><div class="type_details"><div class="method_detail_list"><h2>Method Detail</h2><div class="method_details alt_row"><a name="inject"></a><h3>inject</h3><code class="method_synopsis">static public function <strong class="method_name">inject</strong>(o:<span class="unresolved_type_name">Object</span>):<span class="unresolved_type_name">Number</span></code><div class="method_info"><p>
 Return the RUID key injected into an object - used as both getter and setter.
 </p><h4>Parameters</h4><table class="arguments extra_info" summary=""><tr><td><code>o</code></td><td>(Object) Object to inject RUID key in to
 </td></tr></table><h4>Return</h4><p class="extra_info"> (Number) Runtime Unique ID
	 </p></div></div><div class="method_details"><a name="getKey"></a><h3>getKey</h3><code class="method_synopsis">static public function <strong class="method_name">getKey</strong>(o:<span class="unresolved_type_name">Object</span>):<span class="unresolved_type_name">Number</span></code><div class="method_info"><p>
 Injection wrapper to provide saner syntactical getter functionality.
	 </p></div></div><div class="method_details alt_row"><a name="getNextName"></a><h3>getNextName</h3><code class="method_synopsis">static public function <strong class="method_name">getNextName</strong>():<span class="unresolved_type_name">String</span></code><div class="method_info"><p>
 Returns next RUID as String to generate unique name
 for an object.
 </p><h4>Return</h4><p class="extra_info"> String
	 </p></div></div><div class="method_details"><a name="previewNextKey"></a><h3>previewNextKey</h3><code class="method_synopsis">static public function <strong class="method_name">previewNextKey</strong>():<span class="unresolved_type_name">Number</span></code><div class="method_info"><p>
 Preview the next object RUID to be assigned.
 </p><h4>Return</h4><p class="extra_info"> Number
	 </p></div></div><div class="method_details alt_row"><a name="isSameObject"></a><h3>isSameObject</h3><code class="method_synopsis">static public function <strong class="method_name">isSameObject</strong>(a:<span class="unresolved_type_name">Object</span>, b:<span class="unresolved_type_name">Object</span>):<span class="unresolved_type_name">Boolean</span></code><div class="method_info"><p>
 Debugging method to check if two objects are equal.
 </p><h4>Parameters</h4><table class="arguments extra_info" summary=""><tr><td><code>a</code></td><td>(Object)
 </td></tr><tr><td><code>b</code></td><td>(Object)
 </td></tr></table><h4>Return</h4><p class="extra_info"> Boolean
	 </p></div></div></div></div><ul class="main_nav" id="main_nav"><li><a href="../../../overview-summary.html" title="Overview of SASAPI" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.sekati.core" class="button">Package</a></li><li><span class="button nav_current">Class</span></li><li><a href="KeyFactory.as.html" title="Source code of com.sekati.core.KeyFactory" class="button">Source</a></li><li><a href="../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>